var url1='http://localhost:8080/';
window.sessionStorage.setItem('url1', url1);
function login1(){
	var username=$('#username').val();
	var password=$('#password').val();
	$.ajax({
        url:url1+'login',
        type:'post',
        data:{'username':username,'password':password},
        dataType:'JSON',
        success:function (datas) {
        	alert(datas.meta.message);
        	window.sessionStorage.setItem('username', username);
        	window.location.href='ChosenPage.html';
        }
    },'json');
}



